//
//  HPHomeOneTableViewCell.swift
//  TLenPoint
//
//  Created by Docker on 2018/3/23.
//  Copyright © 2018年 Docker. All rights reserved.
//

import UIKit
import SnapKit
class HPHomeOneTableViewCell: UITableViewCell {

    var array : [RotatoModel]?
    {
        didSet{
            guard array != nil else {
                return
            }
            self.rotato.dataArray = array
        }
    }
    // MARK: -- 懒加载控件
    fileprivate lazy var rotato :LPRotatoView = {
        let ro = LPRotatoView()
        return ro
    }()
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.creatUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    private func creatUI(){
        self.contentView.addSubview(rotato)
        rotato.snp.makeConstraints { (make) in
            make.top.equalTo(self.contentView)
            make.bottom.equalTo(self.contentView)
            make.left.equalTo(self.contentView)
            make.right.equalTo(self.contentView)
        }
    }
   
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
